package com.bdqn.crm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.crm.pojo.SysRight;
import com.bdqn.crm.pojo.SysRole;

import javax.management.relation.Role;
import java.util.List;

public interface SysRightService extends IService<SysRight> {
    /**
     * 查询所有权限
     * @return
     */
    public List<SysRight> findAllRights();
    /**
     * 根据角色查询权限
     * @param role
     * @return
     */
    public List<SysRight> findRightsByRole(SysRole role);
}
